#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main (int argc, char const* argv[])
{
    int count, i, d, m, y;
    char *month[] = {"pop", "no", "zip", "zotz", "tzec", "xul", "yoxkin", "mol",
        "chen", "yax", "zac", "ceh", "mac", "kankin", "muan", "pax", "koyab",
        "cumhu", "uayet"};

    srand((int)time(0));

    /* Test Case 1*/
    if (atoi(argv[1]) == 0) {
        count = 5;
        printf("%d\n", count);
        printf("%d. %s %d\n", 0, month[0], 0);
        printf("%d. %s %d\n", 4, month[18], 0);
        printf("%d. %s %d\n", 4, month[18], 4999);
        printf("%d. %s %d\n", 0, month[0], 4999);
        printf("%d. %s %d\n", 0, month[0], 1);
        
        return 0;
    }

    /* Other Test Case */
    count = 10;
    printf("%d\n", count);
    for (i = 0; i < count; i++) {
        y = rand() % 5000;
        m = rand() % 19;
        if (m == 19) {
            d = rand() % 5;
        } else {
            d = rand() % 20;
        }
        printf("%d. %s %d\n", d, month[m], y);
    }

    return 0;
}
